package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.basic.pojo.entity.BaseNewsIssueVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: dxj
 * @descrinption: Created by dxj on 18-6-27.
 * @modified:
 */
@Mapper
public interface BaseNewsMapper {

    public int addNews(BaseNewsIssueVO newsIssue);


    public int ediNews(BaseNewsIssueVO newsIssue);

    public BaseNewsIssueVO getNewsIssueById(Long id);


    public List<BaseNewsIssueVO> queryPagedList(Page<BaseNewsIssueVO> page, BaseNewsIssueVO newsIssue);


    public List<BaseNewsIssueVO> queryForNews(Page<BaseNewsIssueVO> page, BaseNewsIssueVO newsIssue);

    public List<String> queryLikeTitle(String newsTitle);

    public int ediNewsIsRead(BaseNewsIssueVO issueVO);

}
